package com.tianbo.elfii.client.common;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;


import com.tianbo.elfii.client.common.ElfiiCommonUtil.FeedBackType;
import com.tianbo.elfii.client.common.wlanmanagement.BaseDialogPane;


public class InvalidTipPane extends BaseDialogPane {

	public Container contentPane = null; 
	public InvalidTipDialog dialog = null; 

	public InvalidTipPane() {
		super();
		// TODO Auto-generated constructor stub
		
		initInvalidTipDialog();
		
		dialog.setOpaque(false);
	}
	
	public void initInvalidTipDialog(){
		dialog = new InvalidTipDialog();
		dialog.setBounds(240, 248, 545, 272);
		dialog.init();
		dialog.confirmBtn.addActionListener(new ConfirmBtnListener());
		this.add(dialog);
	}
	
	public class ConfirmBtnListener implements ActionListener {

		@Override
		public void actionPerformed(ActionEvent e) {
			// TODO Auto-generated method stub
			
			ElfiiCommonUtil.playFeedbackAudio(FeedBackType.CLICK);
            ElfiiCommonConfigUtil.doRootCmd("shutdown -h now");
		}
	}


}
